home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-05-07 | 1.3 KB | 48 lines | [TEXT/ttxt] |
- \ Don't forget to use the latest FRONTEND and PATHLIST when compiling
- 0 -> interpret \ vector interpret to (intrp)
- 0 -> path
- Forget @sarray
-
- // ::Float source:fltMem
- // ::Float source:fpCode
- // ::Float source:fArgs
- // ::Float source:fValue
-
- \ a temporary fix for system 7.0.1's and 7.1's nasty habit of changing pack4 calls
- \ What this does is save a pristine image of the floating point code
- \ range that contains pack4 calls to a CODE resource of ID=5. StdSave
- \ is redefined in frontend and will restore this code ontop of any
- \ changes the system may have done at document save time. Likewise,
- \ the install module will do the same if you are creating a standalone
- \ application that might have corrupted code.
-
- ' f> -> 'f>
- string data
- new: data
- : saveCode { \ codeHndl -- }
- 5 getres CODE -dup
- IF call RmveResource THEN
- 'f> ' flt! over - put: data
- data @ 'type CODE w 5 nullOsStr call addResource
- 5 getres CODE -> codeHndl
- codeHndl w 16 call setResAttrs
- codeHndl call ChangedResource
- word0 call curResFile call UpdateResFile ;
-
- saveCode forget data
-
- // ::Float source:fpi/o
- // ::Float source:fInterpret
- // ::Float source:elCode
- // ::Float source:fpExtra
- // ::Float source:Float
-
-
- // ::System source:PathList
- // ::System source:FrontEnd
-
- 1 beep 1 beep 1 beep 1 beep
- READFP
- save yerkFP.com
- Become yerk
-